﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="ViewDetailOfRequisition.aspx.cs" Inherits="PresentationLayer.ViewDetailOfRequisition" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <!--<script src="/Scripts/jquery-1.7.1.js"  type="text/javascript"></script>-->
    <%--<script src="MyScripts/jquery-2.0.3.min.js"></script>--%>
    <%--<script>
        $(function () {
            $("#<%=gvReqDetail.ClientID%> tr td:nth-child(4) input").change(function () {
                if ($(this).prop("checked")) {
                    if ($(this).val() == "rdoApprove")
                        $(this).parent().next().children().attr("readonly", false);
                    else
                    {
                        $(this).parent().next().children().attr("readonly", true);
                        $(this).parent().next().children().val("");
                    }
                    
                }
            });
        });
    </script>--%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="center">
        <h2>View Detail of Requisiton</h2>
        <p>&nbsp;</p>
        <div class="row">
            <label class="control-label" for="ddlEmployee">Employee Name:</label> 
            <asp:Label ID="lblEmpName" runat="server" cssClass="control-label" Text="Label"></asp:Label>

            <br />

        </div>
        <div class="table">
            <asp:GridView ID="gvReqDetail" runat="server" AutoGenerateColumns="False" CssClass="table table-hover table-striped table-bordered">
            <Columns>
                <asp:BoundField DataField="ItemName" HeaderText="Item Name">
                         <ItemStyle BorderStyle="Solid" />
                     </asp:BoundField>
                    <asp:BoundField DataField="CategoryName" HeaderText="Category">
                         <ItemStyle BorderStyle="Solid" />
                     </asp:BoundField>
                     <asp:BoundField DataField="RequestQty" HeaderText="Requested Qty" >
                         <ItemStyle BorderStyle="Solid" />
                </asp:BoundField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:RadioButton ID="rdoApprove" runat="server" GroupName="rdo" Checked="True" Text="Approve" OnCheckedChanged="rdoApprove_CheckedChanged" />
                        <asp:RadioButton ID="rdoReject" runat="server" GroupName="rdo" Text="Reject" OnCheckedChanged="rdoReject_CheckedChanged" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:TextBox ID="txtReason" runat="server" Height="23px" Width="255px"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            
        </asp:GridView>
        </div>
        

        <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" CssClass="btn-primary" /> &nbsp;
        <asp:Button ID="btnCancel" runat="server" Text="Back" CssClass="btn-success" OnClick="btnCancel_Click" />
    </div>
    <br />
</asp:Content>
